﻿using HandyControl.Controls;
using System.Windows;

namespace WpfModelEditor.Core.Controls.PropertyEditors
{
    public class Color4Editor : PropertyEditorBase
    {
        public override FrameworkElement CreateElement(PropertyItem propertyItem) => new Color4Picker
        {
            IsEnabled = !propertyItem.IsReadOnly,
        };

        public override DependencyProperty GetDependencyProperty() => Color4Picker.SelectedValueProperty;
    }
}
